package gwt.client.rpc;

import com.google.gwt.user.client.rpc.AsyncCallback;

/**
 * Created by swootton on 02/04/14.
 *
 * A service interface must have a corresponding asynchronous
 * interface with the same package and name with the Async suffix appended
 */

public interface MFServiceAsync {

    /**
     * The nature of asynchronous method calls requires the caller to
     * pass in a callback object that can be notified when an
     * asynchronous call completes, since by definition the caller cannot
     * be blocked until the call completes.
     *
     * Each method in the synchronous service interface must have a
     * coresponding method in the asynchronous service interface
     * with an extra AsyncCallback parameter as the last argument.
     *
     * @param id
     * @param callback
     */
    public void getRepositories(String id, AsyncCallback<String> callback);
}